package com.kata.chapter1;

/**
 * Created by Solidsnake on 2014/11/16.
 */
public class Main {

    public static void main(String[] args) {
        Car bmw = CarFactory.getCar("BMW");
        Car benZ = CarFactory.getCar("BenZ");

        bmw.printName();
        bmw.driving();
        System.out.println("===============");
        benZ.printName();
        benZ.driving();
    }
}
